package com.sky.service.impl;

import com.sky.mapper.SetmealDishMapper;
import com.sky.service.SetmealDishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealDishServiceImpl implements SetmealDishService {
    @Autowired
    private SetmealDishMapper setmealDishMapper;
    /**
     * 功能描述: 根据菜品id查询套餐id
     * @return : java.util.List<java.lang.Long>
     */
    @Override
    public List<Long> findSetmealIdsByDishId(Long id) {
        List<Long> setmealIdsByDishId = setmealDishMapper.findSetmealIdsByDishId(id);
        return setmealIdsByDishId;
    }
}
